package com.example.aircraftticketingsystemserver.mapper;

import com.example.aircraftticketingsystemserver.entity.Passenger;
import com.example.aircraftticketingsystemserver.entity.UserPassenger;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxz
 * @since 2024-08-19
 */
@Mapper
public interface UserPassengerMapper extends BaseMapper<UserPassenger> {
    List<Passenger> findPassengersByUserId(  @Param("userId") Integer userId,
                                             @Param("passengerNumber") String passengerNumber,
                                             @Param("passengerName") String passengerName,
                                             @Param("passengerPhone") String passengerPhone);

    List<Passenger> getPassengerList(@Param("userId") Integer userId);
}
